Repository navigation
feat(storage): Durable Object SQLite driver and SQL, layered and fetcher blob stores (RFC-0036 phase 1) - #22
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
…her blob stores RFC-0036 phase 1. @cloudhal/storage/do-sqlite adds DoSqliteDriver over a SQLite-backed Durable Object's storage: batch runs in transactionSync and is never exposed as a transaction, D1 limits are enforced as on every adapter. SqlBlobStore keeps blobs in a table of the same database with an atomic total cap; LayeredBlobStore reads a writable store over a read-only one; FetcherBlobStore reads static files from an ASSETS binding. createMiniflareDoSqlite runs the real driver inside a test Durable Object, so the storage conformance suites and core-ts's store and search suites now also run on Durable Object SQLite (all migrations, FTS5 included). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Madraka <[email protected]>
Madraka
force-pushed
the
feat/storage-do-sqlite
branch
from
October 20, 2026 15:13
2a3d998 to
c70d3fa
Compare
This was referenced Oct 20, 2026
Merged
Madraka
added a commit
that referenced
this pull request
Oct 20, 2026
feat(storage): Durable Object SQLite driver and SQL, layered and fetcher blob stores (RFC-0036 phase 1)
Madraka
added a commit
that referenced
this pull request
Oct 20, 2026
The public playground (RFC-0036): Durable Object SQLite storage (#22), playground mode in the API and Studio (#23), and the playground Worker and PlaygroundSite Durable Object (#24). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Madraka <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC-0036 phase 1 (ADR-0038, in #10).
@cloudhal/storage/do-sqlite:DoSqliteDriverover a SQLite-backed Durable Object'sctx.storage.batchruns insidetransactionSync(a throw rolls everything back) and is never handed to callers;BEGINstays refused; D1 limits enforced like every adapter.SqlBlobStore(blobs in a_blobstable of the same database, SHA-256 recorded and checked, per-object cap default 1 MiB, total cap checked in the writing statement),LayeredBlobStore(writable upper over read-only base, mergedlist, deletes never touch the base),FetcherBlobStore(read-only over anASSETSbinding,keysforlist).@cloudhal/storage/testing:createMiniflareDoSqlite()runs the real driver inside a test-only Durable Object on Miniflare; Node gets a driver whose every call is one request to it.SqlBlobStoreon better-sqlite3 and on DO SQLite, and forLayeredBlobStore; cap, prefix and fetcher tests; core-tsdescribeSiteGraphStoreandsearchSuitegain a "Durable Object SQLite + sql blobs" backend (68 tests).pnpm checkgreen locally (run alone).🤖 Generated with Claude Code